package mapper;
import	java.util.List;

import entity.Permission;
import entity.Role;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Author Administrator
 * @create 2020.06.18 上午 9:00
 */
public interface RoleMapper {
    List<Role> selectAll();


    List<Role> selectByMap(Map<String, Object> params);

    int insert(Role role);
@Select("select * from role where id=#{id}")
    Role selectById(Integer id);

    int update(Role role);
@Delete("delete role where id=#{id}")
    int delete(Integer id);

    Role selectRoleAndPer(Integer id);
}
